package com.jzr.bedside.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.jzr.bedside.R
import com.jzr.bedside.bean.HospitalDetailsBean
import com.jzr.bedside.bean.SkillListBean


class HospitalDetailsLeftAdapter(data: MutableList<HospitalDetailsBean>?) :
    BaseQuickAdapter<HospitalDetailsBean, BaseViewHolder>(
        R.layout.item_hospitaldetails_left,
        data
    ) {


    override fun convert(helper: BaseViewHolder?, item: HospitalDetailsBean?) {
        helper?.setText(R.id.tvTitle, item?.title)
        helper?.itemView?.setOnClickListener {
            onItemClick?.onListItemClick(item)
        }
    }

    private var onItemClick: onListItemClick? = null

    interface onListItemClick {
        fun onListItemClick(item: HospitalDetailsBean?)
    }

    fun onListItemClick(onListItemClick: onListItemClick?) {
        this.onItemClick = onListItemClick
    }



}